package com.neuedu.wemall.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

import com.neuedu.wemall.dao.entity.Cart;
/**
* Author lu
* Date   2025-09-08 15:17:25
*/
@Mapper
public interface CartMapper extends BaseMapper<Cart> {

    /**
     * 根据会员用户ID查询购物车列表
     * @param userId 会员用户ID
     * @param page 分页对象
     * @return 购物车列表
     */
    Page<Cart> selectMemberCartList(@Param("userId") int userId, Page<Cart> page);

}